package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.yearMaster.UserYearMasterData;
import com.yanqu.road.entity.activity.yearMaster.YearMasterBoss;
import com.yanqu.road.entity.activity.yearMaster.YearMasterConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class YearMasterBussiness {
    public static Map<Integer, UserYearMasterData> getUserYearMasterInfo(long userId) {
        return DaoHelper.getUserYearMasterDaoImpl().getUserYearMasterInfo(userId);
    }

    public static void addUserData(UserYearMasterData userYearMasterData) {
        DaoHelper.getUserYearMasterDaoImpl().add(userYearMasterData);
    }

    public static void updateUserData(UserYearMasterData userYearMasterData) {
        DaoHelper.getUserYearMasterDaoImpl().update(userYearMasterData);
    }

    public static YearMasterBoss getBossData(int activityId) {
        return DaoHelper.getYearMasterBossDaoImpl().getYearMasterBoss(activityId);
    }

    public static void addBossData(YearMasterBoss bossData) {
        DaoHelper.getYearMasterBossDaoImpl().add(bossData);
    }

    public static void updateBossData(YearMasterBoss bossData) {
        DaoHelper.getYearMasterBossDaoImpl().update(bossData);
    }

    public static Map<Integer, YearMasterConfig> getYearMasterBossConfig(int activityId) {
        return DaoHelper.getYearMasterActivityDaoImpl().getYearMasterConfigMap(activityId);
    }
}
